package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author linju
 * @since 2020-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "LedHistory对象", description = "")
public class LedHistory extends Model<LedHistory> {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "增加主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "设备编码")
  private String deviceCode;

  @ApiModelProperty(value = "设备Mac")
  private String deviceMac;

  @ApiModelProperty(value = "消息内容")
  private String messageContent;

  @ApiModelProperty(value = "文本内容")
  private String textContent;

  @ApiModelProperty(value = "任务类型")
  private String taskType;

  @ApiModelProperty(value = "创建时间")
  private Timestamp createTime;

  @ApiModelProperty(value = "更新时间")
  private Timestamp updateTime;

  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
